package kr.hkit.powerjava.chapter11;
	
class ChildClass extends ParentClass {//251페이지 예제
	int data = 200;
	
	public void print() {
		super.print();
		System.out.println("서브클래스의 프린트메소드");
		System.out.println(this.data);
		System.out.println(super.data);
		
	}
	
	public static void main(String[] args) {
		ChildClass obj = new ChildClass();
		obj.print();
	}
}



